package top.cardone.api.vx.configuration.errorInfo

import org.apache.commons.lang3.StringUtils
import top.cardone.configuration.service.ErrorInfoService
import top.cardone.context.ApplicationContextHolder
import top.cardone.core.CodeException

class modifyModal implements java.io.Serializable {
    def input(input) {
        ["errorInfoId": input.errorInfoId]
    }

    def validation(input) {
//      if (StringUtils.isBlank(input?.errorInfoId)) {
//          throw new CodeException("errorInfoId required", "ErrorInfo标识必填")
//      }
    }

    def func(input) {
		ApplicationContextHolder.getBean(ErrorInfoService.class).findOneByErrorInfoId(input)
    }

    def output(output) {
        def newOutput = [:]


        newOutput
    }
}